{% extends "base.html" %}
{% block content %}
{% load static %}
<link href="{% static 'css/show_.css' %}" type="text/css" rel='stylesheet' />
<div style="width:1080px;margin:auto;">
    <form method="post" action="http://127.0.0.1:8000/re_console/">
    {% csrf_token %}
        <h1 class="mt-3" align="center">{{info.ip_address}} {{method}}控制台</h1>
            <div class="background">
            <pre style="padding:20px 20px 20px 20px ; height:400px">{{result}}</pre>
            <textarea class="form-control" rows="5" name="command"></textarea>
            </div>
        <div class="button">
            <input type="hidden" name="Re_post" value="{{info}}+{{method}}">
            <button type="submit" class="btn btn-secondary">提交</button>
            <a type="submit" class="btn btn-secondary" href="http://127.0.0.1:8000/console">返回</a>
        </div>
    </form>
</div>
{% endblock %}